package top.lshaci.learning.activiti.day2;

import org.activiti.engine.history.HistoricActivityInstance;
import org.junit.Test;
import top.lshaci.learning.activiti.util.ProcessEngineSingleton;

import java.util.List;

/**
 * HistoricProcessTest
 *
 * @author liangxu
 */
public class HistoricProcessTest {

    @Test
    public void queryHistoricProcess() {
        List<HistoricActivityInstance> historicActivityInstances = ProcessEngineSingleton.singleton.historyService()
                .createHistoricActivityInstanceQuery()
                .processInstanceId("25001")
                .list();
        historicActivityInstances.forEach(System.err::println);
    }
}
